package com.demo.highSpeedMap.service;

import com.demo.highSpeedMap.entity.CityCarsInfo;
import com.demo.highSpeedMap.mapper.CityCarsInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class CitysCarsInfoService {
    @Autowired
    CityCarsInfoMapper cm;
    public List<CityCarsInfo> getAllInfo()
    {
        List<CityCarsInfo> l=cm.selectAll();
        for(CityCarsInfo c:l)
            System.out.println(c);
        return l;
    }
}
